// created on 21.07.2007 at 12:27
using System;
using Gtk;

interface iEditTab
{
	void Close(bool save);
	int GetPosition();
	void SetPosition(int pos);
	void Reload();
}

public class CloseableTab : HBox
	{
		public Button closeButton;
 
		public CloseableTab(string title) :base()
		{	
			closeButton = new Button();
			closeButton.Image  = new Gtk.Image(Stock.Close, IconSize.Menu); 
			closeButton.Image.HeightRequest = 12;
			closeButton.Image.WidthRequest = 12;
 
			this.PackStart(new Label(title),false,false,2);
			this.PackStart(closeButton,false,false,0);
 
			ShowAll();
		}
	}